<?php
$this->pageTitle = t('PAGE_TITLE', 'gallery').'-'.$cateName;
$this->breadcrumbs = array('Gallery'=>url('gallery/index'),$cateName);
?>
<h1><?php echo t('PAGE_TITLE', 'gallery').'>'.$cateName?></h1>
<?php $themeUrl = Yii::app()->theme->baseUrl;?>
<script type="text/javascript" src="<?php echo $themeUrl;?>/js/jquery-1.4.3.min.js"></script>
<script type="text/javascript" src="<?php echo $themeUrl;?>/js/jquery.prettyPhoto.js"></script> 
<link type="text/css" href="<?php echo $themeUrl; ?>/css/prettyPhoto.css" rel="stylesheet" media="screen" />

<?php $this->widget('zii.widgets.CListView', array(
            'dataProvider'=>$dataProvider,
            'itemView'=>'_item',
            'template'=>'{items} {pager}'
         ));
?>

<script type="text/javascript">    
   $(document).ready(function(){						
        $("a[rel='slide[photos]']").prettyPhoto({
            animation_speed:'normal',
            slideshow:8000,
            autoplay_slideshow: true
        });  
    });
</script>